<?php
include '1.php';
include '2.php';
include '3.php';

// print_r(config());

/**
 * 实现一些必要接口
 */
class SimpleAddon implements addon
{
  function admin(){}
  function install(){}
  function uninstall(){}
  function demo(){
    //前台调用：Domain/addons/simple/abc.do
    //挂件调用：Widget::load(this)
    //后台配置：Domain/admin/addons/simple/admin.do
    //依赖插件：如支付需要依赖聚合支付插件 Context::require(addons.PayBus)
  }
  function upgrade(){}
}
